package com.api.user.service;
import com.api.user.model.PointsTransaction;
import com.api.core.service.Service;
import com.api.core.response.Result;

import java.math.BigDecimal;
import java.util.Map;

/**
 * Created by wanghuiwen on 2021/03/26.
 */
public interface PointsTransactionService extends Service<PointsTransaction> {
   Result list(String search, String order, Integer page, Integer size);

   Result addOrSub(PointsTransaction coinTransaction);

    Result listUser(Map<String, Object> params, String order, Integer page, Integer size);

    Result giveUser(Long toUser, BigDecimal point, Long createId);
}
